//
//  EVCPopWindowView.h
//  EverVCiOSClient
//
//  Created by 张可可 on 15/11/11.
//  Copyright (c) 2015年 EverVC. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^PopWindowDidClickButtonAtIndex)(NSInteger index);

/**
 *  弹出窗口视图  普通带title弹窗
 */
@interface EVCPopWindowView : UIView

//  其他Btn ， 如果纯文字，参数为字符串数组， 如果带图片，参数为字典数组， 格式为： @[@{@"title": @"xxxx", @"imageName": @"xxxxx"},@{...}]
- (instancetype)initWithTitle:(NSString *)title descTitle:(NSString *)descTitle cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSArray *)otherButtonTitles;

///  标题
@property(nonatomic, strong) UILabel *titleLabel;
///  提示消息
@property (nonatomic, strong) UILabel *descLabel;

///  设置按钮的title颜色
- (void)setButtonTitleColorAtIndex:(NSInteger)buttonIndex titleColor:(UIColor *)color;
///  设置标题和提示消息的字体
- (void)setTitleColor:(UIColor *)titleColor descLabelTextColor:(UIColor *)descTextColor;
///  调整分享到微信按钮图片的位置
- (void)adjustShareBtnPosition;

///  按钮点击事件方法  按钮从下至上 index 0,1,2,...
- (void)clickButtonAction:(PopWindowDidClickButtonAtIndex)btnAction;

- (void)show;
- (void)remove;
- (BOOL)isShowing;
@end
